]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Fix initial slide-in animation
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 31 Aug 2014 00:18:51 +0000 (02:18 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 1 Sep 2014 22:19:37 +0000 (00:19 +0200)
Controls are slided in by animating translationX from the actor's
width to 0; however as _updateTranslation() will skip the animation
when the property is already at its target value and 0 happens to be
the initial value of translationX, the initial animation is skipped.
Fix this by initializing translationX to undefined, which will always
differ from a valid target value.

js/ui/overviewControls.js

index 9fe1dfd2ba08b6ed10d9294ac2920ae815091034..4bd3d67abc32ea193945620d424c1e9584bfc21b 100644 (file)
@@ -36,7 +36,7 @@ const SlideLayout = new Lang.Class({
 
     _init: function(params) {
         this._slideX = 1;
-        this._translationX = 0;
+        this._translationX = undefined;
         this._direction = SlideDirection.LEFT;
 
         this.parent(params);